import random
print(int(1e4))
for i in range(int(1e4)):
    print(100)
    buf = ''
    for j in range(100):
        buf += (str(random.randint(0, int(1e9)))+' ')
    print(buf)
